<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">询价单受理</h1>
</div>
<div class="wrapper-sm" ng-controller="inquiryAcceptedController">
	<div class="panel panel-default">
		<div class="panel-heading font-bold">查询</div>
		<div class="panel-body">
			<label class="control-label pull-left m-t-xs w-xs">总询价编号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" ng-model="queryTerms.inquiryId" id="table_inquiryAccepted_inquiryId" placeholder="请输入总询价编号" name="inquiryId">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">子询价编号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" ng-model="queryTerms.inquiryChildId" id="table_inquiryAccepted_inquiryChildId" placeholder="请输入子询价编号" name="inquiryChildId">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">下单起始时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="dataTime" datetimepicker plugintype="datetime" ng-model="queryTerms.beginTime" name="beginTime" placeholder="起始时间" class="form-control" type="text"
					/>
					<span id="opendataTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">下单结束时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="dataTimeEnd" datetimepicker plugintype="datetime" ng-model="queryTerms.endTime" name="endTime" placeholder="结束时间" class="form-control" type="text"
					/>
					<span id="opendataTimeEnd" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">客户单位</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" ng-model="queryTerms.clientName" id="table_inquiryAccepted_clientName" placeholder="请输入客户单位" name="clientName">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">发货地址</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" ng-model="queryTerms.startAddress" id="table_inquiryAccepted_startAddress" placeholder="请输入发货地址" name="beginaddress">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">送货地址</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" ng-model="queryTerms.endAddress" id="table_inquiryAccepted_endAddress" placeholder="请输入送货地址" name="endaddress">
			</div>
			<label class="control-label pull-left w-xs"></label>
			<div class="col-md-2 col-xs-12">
				<button ng-click="queryFunc()" id="table_inquiryAccepted_query" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
				</button>
			</div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			询价单受理列表
		</div>
		<div class="table-responsive">
			<div ui-grid="gridOptions" id="table_inquiryAccepted_gridOptions" ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns  style="min-height:390px; height:{{heightA}}px; overflow-y:hidden; min-width:1000px;">
				<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
			</div>
		</div>
	</div>
</div>